package com.sf.fy.uav.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * <p>
 * 订单商品关联表
 * </p>
 *
 * @author LTQ
 * @since 2023-12-12
 */
@TableName("order_commodity")
@ApiModel(value = "OrderCommodity对象", description = "订单商品关联表")
public class OrderCommodity implements Serializable {

    private static final long serialVersionUID = 1L;

    private String id;

    private Date createTime;

    private Date updateTime;

    @ApiModelProperty("订单号")
    private String orderSn;

    @ApiModelProperty("商品id")
    private String commodityId;

    @ApiModelProperty("数量")
    private Integer cnt;

    @ApiModelProperty("单价")
    private BigDecimal price;

    @ApiModelProperty("商品名称")
    private String name;

    @ApiModelProperty("图片数组，主图放在第一")
    private String images;

    @ApiModelProperty("商品简介")
    private String introduction;


    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getImages() {
        return images;
    }

    public void setImages(String images) {
        this.images = images;
    }

    public String getIntroduction() {
        return introduction;
    }

    public void setIntroduction(String introduction) {
        this.introduction = introduction;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public String getOrderSn() {
        return orderSn;
    }

    public void setOrderSn(String orderSn) {
        this.orderSn = orderSn;
    }

    public String getCommodityId() {
        return commodityId;
    }

    public void setCommodityId(String commodityId) {
        this.commodityId = commodityId;
    }

    public Integer getCnt() {
        return cnt;
    }

    public void setCnt(Integer cnt) {
        this.cnt = cnt;
    }

    public BigDecimal getPrice() {
        return price;
    }

    public void setPrice(BigDecimal price) {
        this.price = price;
    }

    @Override
    public String toString() {
        return "OrderCommodity{" +
                "id = " + id +
                ", createTime = " + createTime +
                ", updateTime = " + updateTime +
                ", orderSn = " + orderSn +
                ", commodityId = " + commodityId +
                ", cnt = " + cnt +
                ", price = " + price +
                "}";
    }
}
